package com.ruoyi.life.domain;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import com.ruoyi.life.domain.vo.MonthShareVO;
import com.ruoyi.omp.api.domain.vo.NyCheckMeterVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 水电收费标准对象 omp_fe_standard
 *
 * @author cjie
 * @date 2021-11-06
 */
@Data
@ApiModel
public class FeStandard extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** Id */
    @ApiModelProperty(value = "Id")
    private String id;

    /** 园区id */
    @Excel(name = "园区id")
    @ApiModelProperty(value = "园区id")
    private String parkId;


    /** 单价 */
    @Excel(name = "电单价")
    @ApiModelProperty(value = "电单价")
    private BigDecimal elUnitPrice;

    /** 单价 */
    @Excel(name = "水单价")
    @ApiModelProperty(value = "水单价")
    private BigDecimal waterUnitPrice;

    /** 费用周期 */
    @JsonFormat(pattern = "yyyy-MM")
    @JSONField(format="yyyy-MM")
    @Excel(name = "费用周期", width = 30, dateFormat = "yyyy-MM")
    @ApiModelProperty(value = "费用周期")
    private Date feeCycle;

    /** 固费(元/月) */
    @Excel(name = "固费(元/月)")
    @ApiModelProperty(value = "固费(元/月)")
    private BigDecimal fixedFee;

    /** 删除标志(0正常 1删除) */
    @ApiModelProperty(value = "删除标志(0正常 1删除)")
    private String delFlag;

    /** 租户Id */
    @Excel(name = "租户Id")
    @ApiModelProperty(value = "租户Id")
    private String tenantId;

    //以下属性为页面视图属性
    /** 园区编号 */
    @Excel(name = "园区编号")
    @ApiModelProperty(value = "园区编号")
    private String parkNum;

    /** 电表当月分摊集合 */
    @ApiModelProperty(value = "电表当月分摊集合")
    List<MonthShareVO> elMonthShareVOList;

    /** 水表当月分摊集合 */
    @ApiModelProperty(value = "水表当月分摊集合")
    List<MonthShareVO> wMonthShareVOList;

    /** 当月总表抄表记录 */
    @ApiModelProperty(value = "当月总表抄表记录")
    List<NyCheckMeterVO> checkMeterVOList;
}
